function [offset_rg, offset_az] = readOffs(offs_path)
% 读取 offset_pwrm 的输出offs文件

    fid = fopen(offs_path, 'rb', 'b');
    if fid == -1
        error("cannot open: %s", offs_path);
    end

    fseek(fid, 0, 'eof');
    fsize = ftell(fid); 
    fseek(fid, 0, 'bof');

    N = fsize / 8;
    datas = fread(fid, N*2, "single"); datas = single(datas);
    offset_rg = datas(1:2:end);
    offset_az = datas(2:2:end);

    fclose(fid);
end
